<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>knet: E:/knet-git/knet/knet/list.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">knet
   &#160;<span id="projectnumber">1.4.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>结构体</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>全局定义</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e74998c9a9305a116abc25fcf9a1edb.html">knet-git</a></li><li class="navelem"><a class="el" href="dir_a1c045b39f32066568ae964b52db514f.html">knet</a></li><li class="navelem"><a class="el" href="dir_f76d03789f0b12416cfffea59e2ed47d.html">knet</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">list.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00073.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2014-2015, dennis wang</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * modification, are permitted provided that the following conditions are met:</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *     * Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *       notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *     * Redistributions in binary form must reproduce the above copyright</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *       notice, this list of conditions and the following disclaimer in the</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *       documentation and/or other materials provided with the distribution.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef LIST_H</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#define LIST_H</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00056.html">config.h</a>&quot;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<a class="code" href="a00007.html">kdlist_node_t</a>* <a class="code" href="a00073_a5580f80fa42399439b7eba9d59faae59.html#a5580f80fa42399439b7eba9d59faae59">dlist_node_create</a>();</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<a class="code" href="a00007.html">kdlist_node_t</a>* <a class="code" href="a00073_a743378abbafebd0aa14ff754c7bbe9b5.html#a743378abbafebd0aa14ff754c7bbe9b5">dlist_node_init</a>(<a class="code" href="a00007.html">kdlist_node_t</a>* node);</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00073_a1e37eb90626c9cb061a4d8536d9e1c71.html#a1e37eb90626c9cb061a4d8536d9e1c71">dlist_node_destroy</a>(<a class="code" href="a00007.html">kdlist_node_t</a>* node);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<a class="code" href="a00007.html">kdlist_node_t</a>* <a class="code" href="a00073_ae845fbc2a6ba73590161f04340dabed8.html#ae845fbc2a6ba73590161f04340dabed8">dlist_node_set_data</a>(<a class="code" href="a00007.html">kdlist_node_t</a>* node, <span class="keywordtype">void</span>* data);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="keywordtype">void</span>* <a class="code" href="a00073_abc1c6bf7dbfbdf4bffc822ddccf2d07e.html#abc1c6bf7dbfbdf4bffc822ddccf2d07e">dlist_node_get_data</a>(<a class="code" href="a00007.html">kdlist_node_t</a>* node);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<a class="code" href="a00008.html">kdlist_t</a>* <a class="code" href="a00073_a8c365752ad9b0f4b633f397923f9a749.html#a8c365752ad9b0f4b633f397923f9a749">dlist_create</a>();</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<a class="code" href="a00008.html">kdlist_t</a>* <a class="code" href="a00073_aa6e2141ad5da25451a8b80a8195adf3d.html#aa6e2141ad5da25451a8b80a8195adf3d">dlist_init</a>(<a class="code" href="a00008.html">kdlist_t</a>* dlist);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00073_a975e582084cc96ee410fb3816f384774.html#a975e582084cc96ee410fb3816f384774">dlist_destroy</a>(<a class="code" href="a00008.html">kdlist_t</a>* dlist);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00073_a60b57b500075cafe4391396066f4a4a4.html#a60b57b500075cafe4391396066f4a4a4">dlist_add_front</a>(<a class="code" href="a00008.html">kdlist_t</a>* dlist, <a class="code" href="a00007.html">kdlist_node_t</a>* node);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00073_a24c0ab8543c8088b435b8ac8cef43294.html#a24c0ab8543c8088b435b8ac8cef43294">dlist_add_tail</a>(<a class="code" href="a00008.html">kdlist_t</a>* dlist, <a class="code" href="a00007.html">kdlist_node_t</a>* node);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<a class="code" href="a00007.html">kdlist_node_t</a>* <a class="code" href="a00073_a0c58623fcbc3f1108a65f1a78a605d42.html#a0c58623fcbc3f1108a65f1a78a605d42">dlist_add_front_node</a>(<a class="code" href="a00008.html">kdlist_t</a>* dlist, <span class="keywordtype">void</span>* data);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<a class="code" href="a00007.html">kdlist_node_t</a>* <a class="code" href="a00073_aca87625d54662842909b0900be717a3f.html#aca87625d54662842909b0900be717a3f">dlist_add_tail_node</a>(<a class="code" href="a00008.html">kdlist_t</a>* dlist, <span class="keywordtype">void</span>* data);</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="keywordtype">int</span> <a class="code" href="a00073_ac398fa4051e1d12953a24a9c4b011516.html#ac398fa4051e1d12953a24a9c4b011516">dlist_get_count</a>(<a class="code" href="a00008.html">kdlist_t</a>* dlist);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="keywordtype">int</span> <a class="code" href="a00073_ae6b794873e755bedabfc2e64e45a0dbe.html#ae6b794873e755bedabfc2e64e45a0dbe">dlist_empty</a>(<a class="code" href="a00008.html">kdlist_t</a>* dlist);</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<a class="code" href="a00007.html">kdlist_node_t</a>* <a class="code" href="a00073_a4458c5c60c2d15b434d33255429a633d.html#a4458c5c60c2d15b434d33255429a633d">dlist_remove</a>(<a class="code" href="a00008.html">kdlist_t</a>* dlist, <a class="code" href="a00007.html">kdlist_node_t</a>* node);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00073_af42eadda32e6ed8920ec9fd6f0f5e278.html#af42eadda32e6ed8920ec9fd6f0f5e278">dlist_delete</a>(<a class="code" href="a00008.html">kdlist_t</a>* dlist, <a class="code" href="a00007.html">kdlist_node_t</a>* node);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<a class="code" href="a00007.html">kdlist_node_t</a>* <a class="code" href="a00073_a7d5102f0d3cf28ce26a381033d6e29dc.html#a7d5102f0d3cf28ce26a381033d6e29dc">dlist_next</a>(<a class="code" href="a00008.html">kdlist_t</a>* dlist, <a class="code" href="a00007.html">kdlist_node_t</a>* node);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<a class="code" href="a00007.html">kdlist_node_t</a>* <a class="code" href="a00073_af684bff246b7633789ce4bab232676b8.html#af684bff246b7633789ce4bab232676b8">dlist_get_front</a>(<a class="code" href="a00008.html">kdlist_t</a>* dlist);</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<a class="code" href="a00007.html">kdlist_node_t</a>* <a class="code" href="a00073_a08f09dfc5e15e5953016110f4527154b.html#a08f09dfc5e15e5953016110f4527154b">dlist_get_back</a>(<a class="code" href="a00008.html">kdlist_t</a>* dlist);</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="comment">/* 遍历链表，在遍历的同时不能删除或销毁链表节点 */</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="a00073_a74abc436128d57c9cce4bb6cb4514a30.html#a74abc436128d57c9cce4bb6cb4514a30">  169</a></span>&#160;<span class="preprocessor">#define dlist_for_each(list, node) \</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="preprocessor">    for (node = dlist_get_front(list); (node); node = dlist_next(list, node))</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="comment">/* 遍历链表，可以在遍历同时进行删除或销毁链表节点 */</span></div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="a00073_a06e8f967efba4722dce2899baaa5c155.html#a06e8f967efba4722dce2899baaa5c155">  173</a></span>&#160;<span class="preprocessor">#define dlist_for_each_safe(list, node, temp) \</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="preprocessor">    for (node = dlist_get_front(list), temp = dlist_next(list, node); (node); node = temp, temp = dlist_next(list, node))</span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="a00073_a73da38d84d57d10d4b8a82b5ce1873e8.html#a73da38d84d57d10d4b8a82b5ce1873e8">  176</a></span>&#160;<span class="preprocessor">#define dlist_for_each_break() \</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="preprocessor">    break</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LIST_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="a00073_af684bff246b7633789ce4bab232676b8_html_af684bff246b7633789ce4bab232676b8"><div class="ttname"><a href="a00073_af684bff246b7633789ce4bab232676b8.html#af684bff246b7633789ce4bab232676b8">dlist_get_front</a></div><div class="ttdeci">kdlist_node_t * dlist_get_front(kdlist_t *dlist)</div><div class="ttdoc">取得链头节点 </div><div class="ttdef"><b>Definition:</b> list.c:210</div></div>
<div class="ttc" id="a00073_af42eadda32e6ed8920ec9fd6f0f5e278_html_af42eadda32e6ed8920ec9fd6f0f5e278"><div class="ttname"><a href="a00073_af42eadda32e6ed8920ec9fd6f0f5e278.html#af42eadda32e6ed8920ec9fd6f0f5e278">dlist_delete</a></div><div class="ttdeci">void dlist_delete(kdlist_t *dlist, kdlist_node_t *node)</div><div class="ttdoc">销毁链表节点 </div><div class="ttdef"><b>Definition:</b> list.c:193</div></div>
<div class="ttc" id="a00073_aa6e2141ad5da25451a8b80a8195adf3d_html_aa6e2141ad5da25451a8b80a8195adf3d"><div class="ttname"><a href="a00073_aa6e2141ad5da25451a8b80a8195adf3d.html#aa6e2141ad5da25451a8b80a8195adf3d">dlist_init</a></div><div class="ttdeci">kdlist_t * dlist_init(kdlist_t *dlist)</div><div class="ttdoc">初始化链表 </div><div class="ttdef"><b>Definition:</b> list.c:100</div></div>
<div class="ttc" id="a00056_html"><div class="ttname"><a href="a00056.html">config.h</a></div></div>
<div class="ttc" id="a00073_a8c365752ad9b0f4b633f397923f9a749_html_a8c365752ad9b0f4b633f397923f9a749"><div class="ttname"><a href="a00073_a8c365752ad9b0f4b633f397923f9a749.html#a8c365752ad9b0f4b633f397923f9a749">dlist_create</a></div><div class="ttdeci">kdlist_t * dlist_create()</div><div class="ttdoc">创建链表 </div><div class="ttdef"><b>Definition:</b> list.c:83</div></div>
<div class="ttc" id="a00073_a1e37eb90626c9cb061a4d8536d9e1c71_html_a1e37eb90626c9cb061a4d8536d9e1c71"><div class="ttname"><a href="a00073_a1e37eb90626c9cb061a4d8536d9e1c71.html#a1e37eb90626c9cb061a4d8536d9e1c71">dlist_node_destroy</a></div><div class="ttdeci">void dlist_node_destroy(kdlist_node_t *node)</div><div class="ttdoc">销毁链表节点 </div><div class="ttdef"><b>Definition:</b> list.c:64</div></div>
<div class="ttc" id="a00073_a7d5102f0d3cf28ce26a381033d6e29dc_html_a7d5102f0d3cf28ce26a381033d6e29dc"><div class="ttname"><a href="a00073_a7d5102f0d3cf28ce26a381033d6e29dc.html#a7d5102f0d3cf28ce26a381033d6e29dc">dlist_next</a></div><div class="ttdeci">kdlist_node_t * dlist_next(kdlist_t *dlist, kdlist_node_t *node)</div><div class="ttdoc">取得链头当前节点的下一个节点 </div><div class="ttdef"><b>Definition:</b> list.c:199</div></div>
<div class="ttc" id="a00073_ae845fbc2a6ba73590161f04340dabed8_html_ae845fbc2a6ba73590161f04340dabed8"><div class="ttname"><a href="a00073_ae845fbc2a6ba73590161f04340dabed8.html#ae845fbc2a6ba73590161f04340dabed8">dlist_node_set_data</a></div><div class="ttdeci">kdlist_node_t * dlist_node_set_data(kdlist_node_t *node, void *data)</div><div class="ttdoc">设置节点自定义数据 </div><div class="ttdef"><b>Definition:</b> list.c:72</div></div>
<div class="ttc" id="a00073_aca87625d54662842909b0900be717a3f_html_aca87625d54662842909b0900be717a3f"><div class="ttname"><a href="a00073_aca87625d54662842909b0900be717a3f.html#aca87625d54662842909b0900be717a3f">dlist_add_tail_node</a></div><div class="ttdeci">kdlist_node_t * dlist_add_tail_node(kdlist_t *dlist, void *data)</div><div class="ttdoc">建立新节点并添加到链表尾部，同时设置节点自定义数据 </div><div class="ttdef"><b>Definition:</b> list.c:158</div></div>
<div class="ttc" id="a00073_a0c58623fcbc3f1108a65f1a78a605d42_html_a0c58623fcbc3f1108a65f1a78a605d42"><div class="ttname"><a href="a00073_a0c58623fcbc3f1108a65f1a78a605d42.html#a0c58623fcbc3f1108a65f1a78a605d42">dlist_add_front_node</a></div><div class="ttdeci">kdlist_node_t * dlist_add_front_node(kdlist_t *dlist, void *data)</div><div class="ttdoc">建立新节点并添加到链表头部，同时设置节点自定义数据 </div><div class="ttdef"><b>Definition:</b> list.c:145</div></div>
<div class="ttc" id="a00073_a975e582084cc96ee410fb3816f384774_html_a975e582084cc96ee410fb3816f384774"><div class="ttname"><a href="a00073_a975e582084cc96ee410fb3816f384774.html#a975e582084cc96ee410fb3816f384774">dlist_destroy</a></div><div class="ttdeci">void dlist_destroy(kdlist_t *dlist)</div><div class="ttdoc">销毁整个链表，并销毁所有节点（不销毁节点内自定义数据） </div><div class="ttdef"><b>Definition:</b> list.c:112</div></div>
<div class="ttc" id="a00073_a4458c5c60c2d15b434d33255429a633d_html_a4458c5c60c2d15b434d33255429a633d"><div class="ttname"><a href="a00073_a4458c5c60c2d15b434d33255429a633d.html#a4458c5c60c2d15b434d33255429a633d">dlist_remove</a></div><div class="ttdeci">kdlist_node_t * dlist_remove(kdlist_t *dlist, kdlist_node_t *node)</div><div class="ttdoc">将节点从链表内移除但不销毁 </div><div class="ttdef"><b>Definition:</b> list.c:181</div></div>
<div class="ttc" id="a00073_a60b57b500075cafe4391396066f4a4a4_html_a60b57b500075cafe4391396066f4a4a4"><div class="ttname"><a href="a00073_a60b57b500075cafe4391396066f4a4a4.html#a60b57b500075cafe4391396066f4a4a4">dlist_add_front</a></div><div class="ttdeci">void dlist_add_front(kdlist_t *dlist, kdlist_node_t *node)</div><div class="ttdoc">将节点添加到链表头部 </div><div class="ttdef"><b>Definition:</b> list.c:125</div></div>
<div class="ttc" id="a00073_a743378abbafebd0aa14ff754c7bbe9b5_html_a743378abbafebd0aa14ff754c7bbe9b5"><div class="ttname"><a href="a00073_a743378abbafebd0aa14ff754c7bbe9b5.html#a743378abbafebd0aa14ff754c7bbe9b5">dlist_node_init</a></div><div class="ttdeci">kdlist_node_t * dlist_node_init(kdlist_node_t *node)</div><div class="ttdoc">初始化链表节点 </div><div class="ttdef"><b>Definition:</b> list.c:55</div></div>
<div class="ttc" id="a00073_a24c0ab8543c8088b435b8ac8cef43294_html_a24c0ab8543c8088b435b8ac8cef43294"><div class="ttname"><a href="a00073_a24c0ab8543c8088b435b8ac8cef43294.html#a24c0ab8543c8088b435b8ac8cef43294">dlist_add_tail</a></div><div class="ttdeci">void dlist_add_tail(kdlist_t *dlist, kdlist_node_t *node)</div><div class="ttdoc">将节点添加到链表尾部 </div><div class="ttdef"><b>Definition:</b> list.c:135</div></div>
<div class="ttc" id="a00073_ae6b794873e755bedabfc2e64e45a0dbe_html_ae6b794873e755bedabfc2e64e45a0dbe"><div class="ttname"><a href="a00073_ae6b794873e755bedabfc2e64e45a0dbe.html#ae6b794873e755bedabfc2e64e45a0dbe">dlist_empty</a></div><div class="ttdeci">int dlist_empty(kdlist_t *dlist)</div><div class="ttdoc">空 </div><div class="ttdef"><b>Definition:</b> list.c:176</div></div>
<div class="ttc" id="a00073_abc1c6bf7dbfbdf4bffc822ddccf2d07e_html_abc1c6bf7dbfbdf4bffc822ddccf2d07e"><div class="ttname"><a href="a00073_abc1c6bf7dbfbdf4bffc822ddccf2d07e.html#abc1c6bf7dbfbdf4bffc822ddccf2d07e">dlist_node_get_data</a></div><div class="ttdeci">void * dlist_node_get_data(kdlist_node_t *node)</div><div class="ttdoc">取得节点自定义数据 </div><div class="ttdef"><b>Definition:</b> list.c:78</div></div>
<div class="ttc" id="a00008_html"><div class="ttname"><a href="a00008.html">_dlist_t</a></div><div class="ttdef"><b>Definition:</b> list.c:39</div></div>
<div class="ttc" id="a00073_a08f09dfc5e15e5953016110f4527154b_html_a08f09dfc5e15e5953016110f4527154b"><div class="ttname"><a href="a00073_a08f09dfc5e15e5953016110f4527154b.html#a08f09dfc5e15e5953016110f4527154b">dlist_get_back</a></div><div class="ttdeci">kdlist_node_t * dlist_get_back(kdlist_t *dlist)</div><div class="ttdoc">取得链表尾节点 </div><div class="ttdef"><b>Definition:</b> list.c:218</div></div>
<div class="ttc" id="a00073_a5580f80fa42399439b7eba9d59faae59_html_a5580f80fa42399439b7eba9d59faae59"><div class="ttname"><a href="a00073_a5580f80fa42399439b7eba9d59faae59.html#a5580f80fa42399439b7eba9d59faae59">dlist_node_create</a></div><div class="ttdeci">kdlist_node_t * dlist_node_create()</div><div class="ttdoc">创建链表节点 </div><div class="ttdef"><b>Definition:</b> list.c:45</div></div>
<div class="ttc" id="a00073_ac398fa4051e1d12953a24a9c4b011516_html_ac398fa4051e1d12953a24a9c4b011516"><div class="ttname"><a href="a00073_ac398fa4051e1d12953a24a9c4b011516.html#ac398fa4051e1d12953a24a9c4b011516">dlist_get_count</a></div><div class="ttdeci">int dlist_get_count(kdlist_t *dlist)</div><div class="ttdoc">取得链表节点数量 </div><div class="ttdef"><b>Definition:</b> list.c:171</div></div>
<div class="ttc" id="a00007_html"><div class="ttname"><a href="a00007.html">_dlist_node_t</a></div><div class="ttdef"><b>Definition:</b> list.c:31</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2015年 七月 27日 星期一 14:33:19 , 为 knet使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
